package accounts;

public class AuthorizationManager {

	public Authorization authenticate(String userName, String password){
		if("engineer".compareToIgnoreCase(password)==0){
			return Authorization.ENGINEER;
		} else if ("authorized user".compareToIgnoreCase(password)==0){
			return Authorization.AUTHORIZED_USER;
		} else if ("tester".compareToIgnoreCase(password)==0){
			return Authorization.TESTER;
		} else if ("security officer".compareToIgnoreCase(password)==0){
			return Authorization.SECURITY_OFFICER;
		} else if ("admin".compareToIgnoreCase(password)==0){
			return Authorization.ADMINISTRATOR;
		} else if ("developer".compareToIgnoreCase(password)==0){
			return Authorization.DEVELOPER;
		}
		
		return Authorization.NONE;
	}
}
